package com.service.business.rabbitmq.binding;


import com.service.business.merchant.support.WriteOffOrder;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.messaging.support.MessageBuilder;

@Slf4j
//@EnableBinding(WriteOffOrderSink.class)
public class WriteOffOrderSendHandler {

    @Autowired
    private WriteOffOrderSink source;

    public void sendWriteOffOrder(WriteOffOrder writeOffOrder) {
        log.info("创建核销订单发送消息:{}", writeOffOrder);
//        source.outWriteOffOrder().send(MessageBuilder.withPayload(writeOffOrder).build());
    }


}
